package com.ruoyi.web.controller.ccc3gc;

import com.ccc3gc.mysystem.bean.OrderType;
import com.ccc3gc.mysystem.service.OrderTypeService;
import com.ruoyi.common.core.domain.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/api/orderType")
public class OrderTypeController {
    @Autowired
    public OrderTypeService orderTypeService;

    //获取订单状态列表
    @GetMapping("/list")
    public AjaxResult queryOrderStat(){
        List<OrderType> orderStates = orderTypeService.selectOrderType();
        return AjaxResult.success(orderStates);
    }
}
